package br.ufrj.ppgi.jemf_advanced_example;

public class CustomActionListener {

	/**
	 * A callback interface that all activities managing JEMF operations must implement.
	 * This mechanism allows activities to be notified of item selections, saves or removes.
	 */
	public interface BaseActionListener {
		/**
		 * Method when an item has been selected.
		 * @param <T>
		 */
		public <T> void onItemSelected(T bean);
		/**
		 * Method when an item must be saved.
		 * @param <T>
		 */
		public <T> T onItemSave(T bean);
		/**
		 * Method when an item must be saved.
		 * @param <T>
		 */
		public <T> void onItemRemove(T bean);
	}

}

